#ifndef MAININTERFACEWIDGET_H
#define MAININTERFACEWIDGET_H

#include <QWidget>
#include <qtcpsocket.h>
#include <QHostAddress>
#include <QMessageBox>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QJsonObject>
#include <QJsonDocument>
#include <QJsonParseError>
#include <QUdpSocket>
#include <QWebSocket>
#include <QCoreApplication>
#include <QtWebSockets/QtWebSockets>
#include <QDebug>
#include <user.h>
//#include "../LogOnWidget/logonwidget.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainInterfaceWidget; }
QT_END_NAMESPACE

class MainInterfaceWidget : public QWidget
{
    Q_OBJECT

public:
    MainInterfaceWidget(QWidget *parent, user userSelf);
    ~MainInterfaceWidget();

private slots:

    void on_btn_send_main_clicked();

    void on_btn_clear_main_clicked();

private:
    Ui::MainInterfaceWidget *ui;
    QWebSocket* socket;
    QString ip;
    QString port;
    QNetworkAccessManager manager;
    user userSelf;
};
#endif // MAININTERFACEWIDGET_H
